package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_shopping_cart")
public class EntityXfShoppingCart implements Serializable {
    private static final long serialVersionUID = 3098479106755059599L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long comId;

    @JsonProperty("pId")
    private Integer pId;

    @JsonProperty("mealplanId")
    private Integer mealplanId;

    private Integer merchId;

    private Integer pointId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+08")
    private Date mealDate;

    private Integer mealNo;

    private Integer dishesId;

    private String dishesName;

    private Integer priceMode;

    private Integer weightNumber;

    private Integer dishesPrice;

    private String photoUrl;

    private Integer state;

    private String platOrderNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
